package com.woniuxy.controller;

import com.woniuxy.entity.Credential;
import com.woniuxy.entity.ResponseEntity;
import com.woniuxy.service.AvatarServer;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: 15489  <br/>
 * Date: 2022/3/14:9:55  <br/>
 * Description:
 */

@RestController
@RequestMapping("/avatar")
public class AvatarController {
    @Autowired(required = false)
    AvatarServer avatarServer;

    @ApiOperation(value = "上传证书")
    @RequestMapping("/insert")
    public ResponseEntity insert(@RequestBody Credential credential){


        return avatarServer.insert(credential);
    }

}
